//打印数组
  public static void printArray(String[] arry){
        for(int i =0 ;i<arry.length;i++){
            System.out.print(arry[i]);
            System.out.print(" ");
        }
        System.out.println();
  }

//日期格式化
 public void Date() throws IOException, ParseException {
        Date date = new Date();
        //日期转字符串格式化
        DateFormat format=new SimpleDateFormat("yyyy-MM-dd");
        String time =  format.format(date);
        System.out.println(time);
        
        //字符串转日期
        Date parse = format.parse(time);
        String time2 =  format.format(parse);
        System.out.println(time2);
    }

//Bash64
    public void base64() throws IOException {
        //Base64解码
        BASE64Decoder base64Decoder = new BASE64Decoder();
        byte[] bytes = base64Decoder.decodeBuffer("EPAMKSkeaASld/rtmHscQ//MuKaI0NN1pkMA+cTxMM4bPCmiuok7NhAeT9OYJI5QKOvfrd9assHS4D7M/PaC1g==");
        String s = new String(bytes);
//        String str = new String(s.getBytes("iso-8859-1"),"UTF-8");
        String str = new String(s.getBytes("ISO-8859-1"),"UTF-8");
        System.out.println(str);
    }